<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="dialog-warp-ajax add-subject-list">
    <form id="addSubjectForm">
        <input type="hidden" name="id" id="id" value="${evaluatingPaperSubject.id}">
        <table class="dggui-table-info">
            <tbody>
            <tr>
                <th class="required">名称：</th>
                <td><input type="text" class="dggui-input wid280" maxlength="50" id="subjectName" name="subjectName" value="${evaluatingPaperSubject.subjectName}"></td>
            </tr>
            <tr>
                <th class="required">排序：</th>
                <td><input type="text" class="dggui-input wid280" maxlength="50" id="subjectSort" name="subjectSort" value="${evaluatingPaperSubject.subjectSort}"></td>
            </tr>
            <tr>
                <th class="required">类型：</th>
                <td>
                    <select class="dggui-select" name="subjectType" id="subjectType">
                        <option value="1" <c:if test="${evaluatingPaperSubject.subjectType==1}">selected</c:if>>单选</option>
                        <option value="2" <c:if test="${evaluatingPaperSubject.subjectType==2}">selected</c:if>>多选</option>
                    </select>
                </td>
            </tr>
            <tr>
                <th class="required">所属试题：</th>
                <td>
                    <select class="dggui-select" name="paperId" id="paperId">
                        <option value="">请选择</option>
                        <c:forEach var="paper" items="${paperList}">
                            <option value="${paper.id}" <c:if test="${paper.id==evaluatingPaperSubject.paperId}">selected</c:if>>${paper.paperName}</option>
                        </c:forEach>
                    </select>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>